package xiaye.crawler.core.impl;

import java.net.URI;

import xiaye.crawler.domain.Page;
import xiaye.crawler.core.PageStore;

import com.google.inject.Inject;
import com.ibm.icu.text.CharsetDetector;

public class PrinterPageStore implements PageStore{
	public void storePage(Page page) {
		/*System.out.println(page.getFinalUri());
		CharsetDetector detector = new CharsetDetector();
		detector.setText(page.getContent());
		System.out.println(detector.detect().getLanguage());
		//System.out.println(new CharsetDetector().getString(page.content,null));	*/	
	}
	
	public boolean addressAlreadyExists(URI address) {
		return false;
	}
}
